#include<stdio.h>
int main()
{
    int k;

    double sum1=0,sum2=0,sum3=0;
    int n1=100,n2=50,n3=10;
    for(k=1;k<=n1;k++)
    {
        sum1=k+sum1;
    }
    
    for ( k = 1; k<=n2; k++)
    {
        
        sum2=k*k+sum2;
    }
    
    for ( k = 1; k<=n3; k++)
    {
        
        sum3=sum3+1/k;
        
    }
   
    printf("%15.6lf\n",sum1+sum2+sum3);
    
    return 0;
    
}